from tkinter import *
coords = [0,0, 0,100, 100/3,100, 100/3,0, 100/3,100/3, 100/3*2,100/3, 100/3*2,100/3*2, 100/3,100/3*2, 100/3,0]


x = int(input('x = '))
y = int(input('y = '))
ind = int(input('i = '))
coords = [ind * i for i in coords]

if max(coords) > 500 or min(coords) < 0:
        print('Размеры фигуры превышают размеры поля')


for i in range(len(coords)):
    if i % 2 == 0:
        coords[i] = coords[i] + x
    else:
        coords[i] = coords[i] + y
        
    

root = Tk()
root.title("ИТ марафон")
root.geometry("500x500")
canvas = Canvas(bg = "white", width = 500, height = 500)
canvas.pack(anchor = CENTER, expand = 1)
canvas.create_polygon(coords)
root.mainloop()
